package com.usian.skill.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.usian.skill.mapper.GoodsMapper;
import com.usian.skill.mapper.OrderInfoMapper;
import com.usian.skill.mapper.SkillGoodsMapper;
import com.usian.skill.pojo.OrderInfo;
import com.usian.skill.pojo.SkillGoods;
import com.usian.skill.service.OrderInfoService;
import com.usian.skill.service.SkillGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SkillGoodsServiceImpl extends ServiceImpl<SkillGoodsMapper, SkillGoods> implements SkillGoodsService {

    @Autowired
    private GoodsMapper goodsMapper;

    @Override
    public SkillGoods getByGoodsId(Integer goodsId) {
        return getOne(Wrappers.<SkillGoods>lambdaQuery().eq(SkillGoods::getGoodsId,goodsId));
    }

    @Override
    public void getByIdEdit(Long id) {
        goodsMapper.getByIdEdit(id);
    }
}
